package starsservice.com.kc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import starsservice.com.kc.bean.Account;
import starsservice.com.kc.bean.AccountPassowrd;

import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2019-12-13
 */
public interface IAccountPassowrdService extends IService<AccountPassowrd> {

    int InsterAccountPassword(String password, Account account) throws NoSuchPaddingException, InvalidAlgorithmParameterException, NoSuchAlgorithmException, IllegalBlockSizeException, BadPaddingException, InvalidKeyException;

    AccountPassowrd selectByphone(String phone,String password);

    AccountPassowrd selectByjobnumber(String jobnumber,String password);
}
